package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.bean.Orders;
import com.itheima.dto.OrdersDto;
import org.springframework.transaction.annotation.Transactional;

public interface OrderService extends IService<Orders> {
    @Transactional
    void submit(Orders orders);

    @Transactional
    Page<OrdersDto> userPage(int page, int pageSize);


}
